﻿@model TemplateSelectViewModel
<div class="layui-input-inline" style="width:60%;">
	<input class="layui-input" asp-for="Value" type="text" id="@{@Model.Prefix}" name="@{@Model.Prefix}" data-val="@{@Model.IsRequired.ToString().ToLower()}" data-val-required="@{@Model.RequiredText}" />
</div>
<div class="layui-input-inline">
	<button class="layui-btn layui-btn-sm layuiadmin-btn-list" type="button" onclick="layer_show('模板文件选择','/Admin/Template/TemplateSelect?OpenerText=@{@Model.Prefix}')">浏览</button>
	<a class="layui-btn layui-btn-sm layuiadmin-btn-list" style="color:#fff;" lay-text="模板编辑" lay-href="/Admin/Template/TemplateEdit?mAction=Modify&Dir=@Model.Value">编辑</a>
</div>
<span style="color:red;" class="field-validation-valid" data-valmsg-for="@{@Model.Prefix}" data-valmsg-replace="@{@Model.IsRequired.ToString().ToLower()}"></span>
